<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 17-4-13
 * Time: 14:46
 */

namespace frontend\widget;


use yii\base\Widget;
use yii\helpers\Url;

class PageHeaderWidget extends Widget
{
    public function run()
    {
        $homeUrl = Url::home();
        $logoSrc = \Yii::getAlias('@web/').'images/logo.png';
        return <<<PAGEHEAD

<div class="header w990 bc mt15">
    <div class="logo w990">
        <h2 class="fl"><a href="{$homeUrl}"><img src="{$logoSrc}" alt="京西商城"></a></h2>
    </div>
</div>

PAGEHEAD;

    }
}